package com.tsd.base.dao;

import com.tsd.base.entity.BaseExpressOrg;
import com.tsd.base.entity.BaseExpressOrgExt;
import com.tsd.core.vo.PageBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 描述：BaseExpressOrgMapper
 *
 * @author zsy
 * @date 2020/12/29 15:22:59
 */
public interface BaseExpressOrgMapper {

    BaseExpressOrg selectByPrimaryKey(Long id);

    BaseExpressOrgExt selectBySid(String sid);

    int deleteByPrimaryKey(Long id);

    int insert(BaseExpressOrg record);

    int insertSelective(BaseExpressOrg record);

    int updateByPrimaryKey(BaseExpressOrg record);

    int updateByPrimaryKeySelective(BaseExpressOrg record);

    List<BaseExpressOrgExt> selectByEntity(BaseExpressOrg record);

    List<BaseExpressOrgExt> selectByPage(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<BaseExpressOrgExt> selectCount1Page(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<BaseExpressOrgExt> selectByParams(@Param("params") Map<String, Object> params);

    int countValid();
}
